#!/bin/bash
echo -e "\n"

hdfs namenode -format -force

echo -e "$HADOOP_HOME/sbin/start-dfs.sh\n"

$HADOOP_HOME/sbin/start-dfs.sh

sleep 10

echo -e "$HADOOP_HOME/sbin/start-yarn.sh\n"

$HADOOP_HOME/sbin/start-yarn.sh

# echo -e "$SPARK_HOME/sbin/start-all.sh\n"

# $SPARK_HOME/sbin/start-all.sh

echo -e "hdfs dfs -mkdir /mr-history\n"

hdfs dfs -mkdir /mr-history

echo -e "hdfs dfs -mkdir /stage\n"
hdfs dfs -mkdir /stage


echo -e "\n":
